<template>
  <div id="app">
    <router-view />

    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/list">商品</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/cart">购物车</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return {
       active: 0
    };
  },
  computed: {
    // 这里可以 ...mapState
  },
  methods: {
    // 这里可以 ...mapMutations ,...mapActions
  },
  components: {},
  created() {
    // 在这里获取数据
  },
};
</script>

<style lang="scss">
</style>
